#define _CRT_SECURE_NO_WARNINGS

#include <stdio.h>
#include <math.h>


int ss(int n) {
	int f = 1, i;
	for (i = 3; i <= sqrt(n); i += 2) {
		if (n % i == 0)
			f = 0;
	}
	return f;
}

double jc(int n) {
	double sum;
	if (n == 1)
		sum = 1;
	else
		sum = n * jc(n - 1);
	return sum;
}


int main(){
	
	int x, y, z;
	scanf("%d %d %d", &x, &y, &z);
	if (x > y && x < z)
		z = x; x = y; y = z;
	printf("%d %d %d", x, y, z);
	
	
	
	
	/*int i, L, m = 2, c = 1;
	scanf("%d", &L);
	if (L == 2)
		printf("2 \ncount = 1");

	else if (L >= 3) {
		printf("2 ");
		for (i = 3; m <= L; i+=2) {
			if (ss(i)) {
				printf("%d ", i);
				m += i;
				c++;
			}
			
		}
		printf("\ncount = %d", c);
	}
	
	/*int n;
	
	printf("2\ncount = 1");
	
	scanf("%d", &n);
	printf("%f", jc(n));
	
	
	int elec = 0, sum = 0;
	double m;
	while (elec != -1) {
		scanf("%d", &elec);
		sum += elec;
	}
	sum += 1;
	if (sum <= 2760)
		m = sum * 0.538;
	else if (sum <= 4800)
		m = 1484.88 + (sum - 2760) * 0.588;
	else
		m = 2684.4 + (sum - 4800) * 0.838;

	printf("%.1f", m);*/


	return 0;
}